<template>
  <div class="actors">
    <div class="actors-title">演职人员</div>
    <div class="actors-list">
      <ul class="listul">
        <li v-for="(item,index) in movedetail.actors" :key="index">
          <div class="actors-item">
            <div class="actorspic">
              <img v-lazy="item.avatarAddress" alt="">
            </div>
            <span>{{ item.name }}</span>
            <span>{{ item.role }}</span>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Actors',
  props: ['movedetail']
}
</script>

<style scoped>
.actors {
  margin-top: .10rem;
  background: #fff;
}
.actors-title {
  box-sizing: border-box;
  width: 100%;
  padding: .15rem;
  font-size: .16rem;
  text-align: left;
  color: #191a1b;
}
.listul {
  background: rgb(255, 255, 255);
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  height: 1.40rem;
  margin: 0;
  padding-left: .15rem;
  box-sizing: border-box;
}
.actors-list::-webkit-scrollbar {
  display: none;
}
.listul::-webkit-scrollbar {
  display: none;
}
.listul li {
  width: .85rem;
  min-width: .85rem;
  margin-right: .10rem;
}
.actorspic {
  width: .85rem;
  height: .85rem;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
.actorspic img {
  width: 100%;
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}
.actors-item span:nth-of-type(1) {
  text-align: center;
  display: block;
  padding-top: .10rem;
  font-size: .12rem;
  color: #191a1b;
  width: .85rem;
  height: .18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.actors-item span:nth-of-type(2) {
  display: block;
  text-align: center;
  font-size: .10rem;
  color: #797d82;
}
</style>